package com.seselin.view;

import android.content.Context;
import android.support.annotation.LayoutRes;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * Created by Seselin on 2018/9/7 14:01.
 */
public class BaseViewPart {

    protected View itemView;
    protected Context mContext;
    protected LayoutInflater inflater;

    public View getView() {
        return itemView;
    }

    public BaseViewPart(ViewGroup root, @LayoutRes int resource) {
        this.mContext = root.getContext();
        this.inflater = LayoutInflater.from(root.getContext());
        this.itemView = inflater.inflate(resource, root, false);
    }

    public void setData(Object object) {

    }

}
